package com.agynamix.scala.mi

import _root_.java.io.File
import Conversions._

class WrapperClasses(val file:File) {

  // method with a symbolic name
  def traverse(filter:(File)=>Boolean, funct:(File)=>Unit) {

    
    for (file:File <- file.listFiles) {
      if (file.isDirectory) {
        file.traverse(filter, funct)
      }
      if (filter(file)) {
        funct(file)
      }
    }

  }
}


